﻿#region Using Declarations

using System.Web.Mvc;
using Portfolio.Models;
using Portfolio.Negocio;

#endregion

namespace Portfolio.Ui.Web.Controllers
{
    public class FotosController : Controller
    {
        #region Page Actions

        public ActionResult Index(int id)
        {
            var evento = new EventosRepository().BuscarEvento(id);

            if (evento != null)
            {
                return View(evento);
            }

            return View(new Evento());
        }

        #endregion
    }
}